1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
1.2 +++ b/src/configure.in Tue Jul 24 23:53:34 2012 -0700
1.3 @@ -0,0 +1,47 @@
1.4 +# -*- Autoconf -*-
1.5 +# Process this file with autoconf to produce a configure script.
1.6 +
1.7 +AC_PREREQ([2.61])
1.8 +AC_INIT(foobar, 0.1, https://bugs.alliedmods.net/)
1.9 +AC_CONFIG_AUX_DIR(${srcdir}/build/autoconf)
1.10 +AC_CONFIG_SRCDIR([Heap.cpp])
1.11 +AC_LANG(C++)
1.12 +AC_CANONICAL_HOST
1.13 +
1.14 +# Checks for programs.
1.15 +AC_PROG_CXX
1.16 +
1.17 +# Checks for libraries.
1.18 +
1.19 +# Checks for header files.
1.20 +AC_CHECK_HEADERS([limits.h stddef.h stdint.h stdlib.h string.h sys/time.h unistd.h])
1.21 +
1.22 +# Checks for typedefs, structures, and compiler characteristics.
1.23 +AC_C_INLINE
1.24 +
1.25 +# Checks for library functions.
1.26 +AC_FUNC_MALLOC
1.27 +AC_FUNC_REALLOC
1.28 +AC_CHECK_FUNCS([gettimeofday memset strchr])
1.29 +
1.30 +mkdir -p .deps
1.31 +touch .deps/
1.32 +
1.33 +#AX_COMPILER_VENDOR
1.34 +
1.35 +CXXVENDOR=$ax_cv_cxx_compiler_vendor
1.36 +AC_SUBST(CXXVENDOR)
1.37 +
1.38 +case "$host" in
1.39 + *-linux*)
1.40 + PLATFORM="linux"
1.41 + ;;
1.42 + *-darwin*)
1.43 + PLATFORM="darwin"
1.44 + ;;
1.45 +esac
1.46 +
1.47 +AC_SUBST(PLATFORM)
1.48 +
1.49 +AC_OUTPUT(Makefile)
1.50 +