Rebar good autoconf bad
This commit is contained in:
55
configure.ac
55
configure.ac
@@ -1,55 +0,0 @@
|
||||
# -*- Autoconf -*-
|
||||
# Process this file with autoconf to produce a configure script.
|
||||
|
||||
AC_PREREQ([2.63])
|
||||
AC_INIT([FULL-PACKAGE-NAME], [VERSION], [BUG-REPORT-ADDRESS])
|
||||
AC_CONFIG_SRCDIR([priv/erl_comm.c])
|
||||
#AC_CONFIG_HEADERS([config.h])
|
||||
#AC_CANONICAL_TARGET
|
||||
|
||||
# Checks for programs.
|
||||
AC_PROG_CC
|
||||
AC_PROG_MAKE_SET
|
||||
|
||||
## Checks for libraries.
|
||||
## FIXME: Replace `main' with a function in `-lei':
|
||||
#AC_CHECK_LIB([ei], [main])
|
||||
## FIXME: Replace `main' with a function in `-lerl_interface':
|
||||
#AC_CHECK_LIB([erl_interface], [main])
|
||||
## FIXME: Replace `main' with a function in `-lsqlite3':
|
||||
#AC_CHECK_LIB([sqlite3], [main])
|
||||
|
||||
# Checks for header files.
|
||||
AC_CHECK_HEADERS([stdlib.h string.h unistd.h])
|
||||
|
||||
# Checks for typedefs, structures, and compiler characteristics.
|
||||
AC_C_INLINE
|
||||
|
||||
# Checks for library functions.
|
||||
AC_FUNC_MALLOC
|
||||
AC_FUNC_REALLOC
|
||||
AC_CHECK_FUNCS([bzero strstr])
|
||||
|
||||
AC_ERLANG_NEED_ERLC
|
||||
AC_ERLANG_SUBST_ROOT_DIR
|
||||
AC_ERLANG_SUBST_LIB_DIR
|
||||
AC_ERLANG_CHECK_LIB(erl_interface)
|
||||
AC_ERLANG_CHECK_LIB(kernel)
|
||||
AC_ERLANG_CHECK_LIB(stdlib)
|
||||
AC_ERLANG_CHECK_LIB(crypto)
|
||||
AC_ERLANG_CHECK_LIB(compiler)
|
||||
AC_ERLANG_CHECK_LIB(hipe)
|
||||
AC_ERLANG_CHECK_LIB(syntax_tools)
|
||||
|
||||
AC_ARG_ENABLE([null-atom],
|
||||
[AC_HELP_STRING([--enable-null-atom=atom],
|
||||
[Set to configure null-atom, default 'null'])],
|
||||
[ ac_null_atom=$enableval ],
|
||||
[ ac_null_atom=null ])
|
||||
|
||||
NULL_ATOM="$ac_null_atom"
|
||||
AC_SUBST([NULL_ATOM])
|
||||
AC_CONFIG_FILES([Makefile
|
||||
Emakefile
|
||||
priv/Makefile])
|
||||
AC_OUTPUT
|
||||
Reference in New Issue
Block a user