Custom compiler checking.
[asdcplib.git] / configure.ac
1 #                                               -*- Autoconf -*-
2 # Process this file with autoconf to produce a configure script.
3
4 AC_PREREQ([2.59])
5 # If you change this, you should update the libtool version number specified
6 # in src/Makefile.am. Read <http://www.gnu.org/software/libtool/manual.html#Versioning>
7 # for suggestions on doing so.
8 AC_INIT([asdcplib], [1.3.19], [asdcplib@cinecert.com])
9 AC_CONFIG_AUX_DIR([build-aux])
10 AC_CONFIG_SRCDIR([src/KM_error.h])
11 #AC_CONFIG_HEADER([src/config.h])
12 AM_INIT_AUTOMAKE([1.9 foreign])
13
14 # Checks for programs.
15 AC_CANONICAL_BUILD
16 AC_CANONICAL_HOST
17 AC_PROG_CC([egcc gcc cc cl])
18 AC_PROG_CXX([eg++ g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC])
19 AC_PROG_LIBTOOL
20 AC_PROG_INSTALL
21 AC_PROG_RANLIB
22
23 AC_SYS_LARGEFILE
24 if test "$ac_cv_sys_largefile_CC" != no; then
25    CXX=$CXX$ac_cv_sys_largefile_CC
26 fi
27
28 AX_LIB_OPENSSL([0.9.7])
29 AX_LIB_EXPAT
30 AX_LIB_XERCES
31 #AM_PATH_PYTHON([2.3], , [:])
32 AZ_PYTHON_DEFAULT
33 AZ_PYTHON_WITH
34 AM_CONDITIONAL([HAVE_PYTHON], [test "$PYTHON" != :])
35
36 # Checks for libraries.
37 AC_CHECK_LIB([pthread], [pthread_create])
38
39 # Checks for header files.
40 #AC_HEADER_DIRENT
41 #AC_HEADER_STDC
42 #AC_CHECK_HEADERS([arpa/inet.h fcntl.h limits.h netinet/in.h stdlib.h string.h sys/socket.h unistd.h wchar.h])
43
44 # Checks for typedefs, structures, and compiler characteristics.
45 #AC_C_CONST
46 #AC_C_INLINE
47 #AC_TYPE_OFF_T
48 #AC_TYPE_SIZE_T
49 #AC_STRUCT_TM
50
51 # Checks for library functions.
52 #AC_FUNC_CLOSEDIR_VOID
53 #AC_FUNC_MALLOC
54 #AC_FUNC_MEMCMP
55 #AC_FUNC_STAT
56 #AC_CHECK_FUNCS([getcwd memset regcomp strchr strerror strrchr strstr strtol])
57
58 AC_CONFIG_FILES([Makefile
59                  src/Makefile])
60 AC_OUTPUT