diff options
| author | me_laptop <me_laptop@fb96df88-216d-11de-830c-f3023f12d8ac> | 2012-08-06 12:17:00 +0000 |
|---|---|---|
| committer | me_laptop <me_laptop@fb96df88-216d-11de-830c-f3023f12d8ac> | 2012-08-06 12:17:00 +0000 |
| commit | 32e94e2c5f24ce8d331dfe3fa06437225b083461 (patch) | |
| tree | 501635b01546509bbe21ce970827f8ed2fe1cca3 /configure.ac | |
| parent | 999c3d8546b80f921c63b6ae41ca35932bf5cf79 (diff) | |
| download | pica-pica-32e94e2c5f24ce8d331dfe3fa06437225b083461.tar.gz pica-pica-32e94e2c5f24ce8d331dfe3fa06437225b083461.zip | |
pica-node autoconfiscated and automaked :)
git-svn-id: svn://localhost/project_picapica/trunk@157 fb96df88-216d-11de-830c-f3023f12d8ac
Diffstat (limited to 'configure.ac')
| -rw-r--r-- | configure.ac | 37 |
1 files changed, 37 insertions, 0 deletions
diff --git a/configure.ac b/configure.ac new file mode 100644 index 0000000..4cc9d91 --- /dev/null +++ b/configure.ac @@ -0,0 +1,37 @@ +# -*- Autoconf -*- +# Process this file with autoconf to produce a configure script. + +AC_PREREQ([2.68]) +AC_INIT([Pica Pica Node], [0.5], [http://picapica.im/bugzilla/], [pica-node], [http://picapica.im]) +AM_INIT_AUTOMAKE([-Wall -Werror foreign]) +AC_CONFIG_SRCDIR([PICA_node.c]) + +# Checks for programs. +AC_PROG_CC +AC_PROG_INSTALL + +# Checks for libraries. +AC_CHECK_LIB([crypto], [RAND_add]) +AC_CHECK_LIB([ssl], [SSL_library_init]) +AC_CHECK_LIB([sqlite3], [sqlite3_open]) + +AC_CHECK_PROG([SQLITE3], [sqlite3], [yes], [no]) + +if test "x$SQLITE3" != xyes; then + AC_MSG_ERROR(["sqlite3 program not found"]) + fi + + +# Checks for header files. +AC_CHECK_HEADERS([arpa/inet.h limits.h netdb.h netinet/in.h stdlib.h string.h sys/ioctl.h sys/socket.h sys/time.h unistd.h wchar.h]) + +# Checks for typedefs, structures, and compiler characteristics. +AC_TYPE_UINT16_T + +# Checks for library functions. +AC_FUNC_MALLOC +AC_FUNC_REALLOC +AC_CHECK_FUNCS([getcwd inet_ntoa memmove memset select socket strchr strstr strtol]) + +AC_CONFIG_FILES([Makefile]) +AC_OUTPUT |
