Permit 64-bit builds.
[asdcplib.git] / configure.ac
index 57c07ee77a484c304cf5df633fedf7e6912ba006..e109d517657ca23d771b0170f9f61d638fb7f6cc 100644 (file)
@@ -2,10 +2,13 @@
 # Process this file with autoconf to produce a configure script.
 
 AC_PREREQ([2.59])
-AC_INIT([napali], [1.3.19.1])
+# If you change this, you should update the libtool version number specified
+# in src/Makefile.am. Read <http://www.gnu.org/software/libtool/manual.html#Versioning>
+# for suggestions on doing so.
+AC_INIT([asdcplib], [1.3.19], [asdcplib@cinecert.com])
 AC_CONFIG_AUX_DIR([build-aux])
 AC_CONFIG_SRCDIR([src/KM_error.h])
-AC_CONFIG_HEADER([src/config.h])
+#AC_CONFIG_HEADER([src/config.h])
 AM_INIT_AUTOMAKE([1.9 foreign])
 
 # Checks for programs.
@@ -18,6 +21,9 @@ AC_PROG_INSTALL
 AC_PROG_RANLIB
 
 AC_SYS_LARGEFILE
+if test "$ac_cv_sys_largefile_CC" != no; then
+   CXX=$CXX$ac_cv_sys_largefile_CC
+fi
 
 CHECK_SSL
 AX_LIB_EXPAT
@@ -26,7 +32,24 @@ AZ_PYTHON_DEFAULT
 AZ_PYTHON_WITH
 AM_CONDITIONAL([HAVE_PYTHON], [test "$PYTHON" != :])
 
+# Checks for header files.
+AC_HEADER_DIRENT
+AC_HEADER_STDC
+AC_CHECK_HEADERS([arpa/inet.h fcntl.h limits.h netinet/in.h stdlib.h string.h sys/socket.h unistd.h wchar.h])
+
+# Checks for typedefs, structures, and compiler characteristics.
+AC_C_CONST
+AC_C_INLINE
+AC_TYPE_OFF_T
+AC_TYPE_SIZE_T
+AC_STRUCT_TM
+
 # Checks for library functions.
+AC_FUNC_CLOSEDIR_VOID
+AC_FUNC_MALLOC
+AC_FUNC_MEMCMP
+AC_FUNC_STAT
+AC_CHECK_FUNCS([getcwd memset regcomp strchr strerror strrchr strstr strtol])
 
 AC_CONFIG_FILES([Makefile
                  src/Makefile])