|
Revision 122, 1.4 kB
(checked in by Gregor, 5 years ago)
|
More configuration changes.
|
| Line | |
|---|
| 1 |
# -*- Autoconf -*- |
|---|
| 2 |
# Process this file with autoconf to produce a configure script. |
|---|
| 3 |
|
|---|
| 4 |
AC_PREREQ(2.61) |
|---|
| 5 |
AC_INIT([tdc], [0.0], [cdgregorr@users.sourceforge.net]) |
|---|
| 6 |
AC_CONFIG_AUX_DIR([scripts]) |
|---|
| 7 |
AC_CONFIG_SRCDIR([dmd/access.cc]) |
|---|
| 8 |
AC_CONFIG_HEADER([config.h]) |
|---|
| 9 |
|
|---|
| 10 |
AM_INIT_AUTOMAKE() |
|---|
| 11 |
|
|---|
| 12 |
# Checks for programs. |
|---|
| 13 |
AC_PROG_CXX |
|---|
| 14 |
AC_PROG_CC |
|---|
| 15 |
AC_PROG_MAKE_SET |
|---|
| 16 |
AC_PROG_RANLIB |
|---|
| 17 |
|
|---|
| 18 |
# Checks for libraries. |
|---|
| 19 |
|
|---|
| 20 |
# Checks for header files. |
|---|
| 21 |
#AC_HEADER_STDC |
|---|
| 22 |
#AC_HEADER_SYS_WAIT |
|---|
| 23 |
#AC_CHECK_HEADERS([fcntl.h float.h limits.h malloc.h stddef.h stdint.h stdlib.h string.h sys/time.h unistd.h utime.h wchar.h]) |
|---|
| 24 |
|
|---|
| 25 |
# Checks for typedefs, structures, and compiler characteristics. |
|---|
| 26 |
#AC_HEADER_STDBOOL |
|---|
| 27 |
AC_C_CONST |
|---|
| 28 |
AC_C_INLINE |
|---|
| 29 |
AC_STRUCT_TM |
|---|
| 30 |
AC_C_VOLATILE |
|---|
| 31 |
|
|---|
| 32 |
# Checks for library functions. |
|---|
| 33 |
#AC_FUNC_ALLOCA |
|---|
| 34 |
#AC_FUNC_ERROR_AT_LINE |
|---|
| 35 |
#AC_FUNC_FORK |
|---|
| 36 |
#AC_FUNC_MALLOC |
|---|
| 37 |
#AC_FUNC_MEMCMP |
|---|
| 38 |
#AC_FUNC_REALLOC |
|---|
| 39 |
#AC_FUNC_STAT |
|---|
| 40 |
#AC_FUNC_STRTOD |
|---|
| 41 |
#AC_FUNC_VPRINTF |
|---|
| 42 |
#AC_CHECK_FUNCS([dup2 floor getcwd memchr memmove memset mkdir pow putenv strcasecmp strchr strdup strrchr strstr strtol strtoull]) |
|---|
| 43 |
|
|---|
| 44 |
# Checks for libraries |
|---|
| 45 |
|
|---|
| 46 |
# libgc |
|---|
| 47 |
AC_CHECK_HEADER([gc/gc.h], [], [AC_MSG_ERROR([TDC requires libgc.])]) |
|---|
| 48 |
AC_CHECK_LIB([gc], [GC_init], [], [AC_MSG_ERROR([TDC requires libgc.])]) |
|---|
| 49 |
|
|---|
| 50 |
# libtcc (optional) |
|---|
| 51 |
AC_CHECK_HEADERS_ONCE([libtcc.h]) |
|---|
| 52 |
AC_CHECK_LIB([tcc], [tcc_new]) |
|---|
| 53 |
|
|---|
| 54 |
AC_CONFIG_FILES([Makefile dmd/Makefile tdcsrc/Makefile]) |
|---|
| 55 |
AC_OUTPUT |
|---|