Commit ec1b7b1ce79a34d32e037eb9aa3f64040f6a3e05
1 parent
32edeeb9
Initial import
Showing
1 changed file
with
71 additions
and
0 deletions
configure.ac
0 → 100644
| 1 | +dnl ============================================================= | ||
| 2 | +dnl Process this file with autoconf to produce a configure script | ||
| 3 | +dnl ============================================================= | ||
| 4 | +AC_INIT([CTATools], [0.1], [knodlseder@cesr.fr]) | ||
| 5 | +AC_CONFIG_SRCDIR(src/Makefile.am) | ||
| 6 | +AC_CONFIG_MACRO_DIR([m4]) | ||
| 7 | + | ||
| 8 | +AM_INIT_AUTOMAKE([gnu no-dependencies]) | ||
| 9 | +AM_CONFIG_HEADER([config.h]) | ||
| 10 | +AM_MAINTAINER_MODE | ||
| 11 | + | ||
| 12 | + | ||
| 13 | +dnl =========================== | ||
| 14 | +dnl things required by automake | ||
| 15 | +dnl =========================== | ||
| 16 | +dnl AC_ARG_PROGRAM | ||
| 17 | +AC_PROG_MAKE_SET | ||
| 18 | + | ||
| 19 | + | ||
| 20 | +dnl ====================== | ||
| 21 | +dnl Check for which system | ||
| 22 | +dnl ====================== | ||
| 23 | +dnl AC_CANONICAL_HOST | ||
| 24 | + | ||
| 25 | + | ||
| 26 | +dnl =================== | ||
| 27 | +dnl Checks for programs | ||
| 28 | +dnl =================== | ||
| 29 | +AC_PROG_CXX | ||
| 30 | +AC_PROG_INSTALL | ||
| 31 | +dnl AC_PROG_RANLIB | ||
| 32 | +AC_PROG_LIBTOOL | ||
| 33 | + | ||
| 34 | + | ||
| 35 | +dnl ======================= | ||
| 36 | +dnl Check compiler features | ||
| 37 | +dnl ======================= | ||
| 38 | +dnl AC_TYPE_SIZE_T | ||
| 39 | +dnl AC_C_CONST | ||
| 40 | +dnl AC_C_VOLATILE | ||
| 41 | +dnl AC_C_INLINE | ||
| 42 | + | ||
| 43 | + | ||
| 44 | +dnl ======================= | ||
| 45 | +dnl Checks for header files | ||
| 46 | +dnl ======================= | ||
| 47 | + | ||
| 48 | + | ||
| 49 | +dnl ============================================================= | ||
| 50 | +dnl Checks for typedefs, structures, and compiler characteristics | ||
| 51 | +dnl ============================================================= | ||
| 52 | + | ||
| 53 | + | ||
| 54 | +dnl ============================ | ||
| 55 | +dnl Checks for library functions | ||
| 56 | +dnl ============================ | ||
| 57 | + | ||
| 58 | + | ||
| 59 | +dnl =================== | ||
| 60 | +dnl Checks for gammalib | ||
| 61 | +dnl =================== | ||
| 62 | +AC_SEARCH_LIBS(str, gammalib, | ||
| 63 | + AC_DEFINE([G_GAMMALIB], [1], [Define if gammalib is available]), ,[-lm]) | ||
| 64 | + | ||
| 65 | + | ||
| 66 | +dnl ====================================== | ||
| 67 | +dnl Set list of output files to be creates | ||
| 68 | +dnl ====================================== | ||
| 69 | +AC_OUTPUT([Makefile | ||
| 70 | + src/Makefile | ||
| 71 | + src/ctselect/Makefile]) |