forked from juanjosegarciaripoll/f2c
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathconfigure.ac
57 lines (48 loc) · 1.58 KB
/
configure.ac
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
dnl -*- Autoconf -*-
AC_INIT([F2C Fortran to C99 compiler],
[12.02.01],
[f2c])
#
# Initialize Autoconf. Note that all files in config_aux are created by
# the automatic tools.
#
AC_PREREQ(2.59)
AC_CONFIG_SRCDIR([./README.md]) dnl Unique file where sources are
AC_CONFIG_MACRO_DIR([m4]) dnl Additional macro directories
AC_CONFIG_AUX_DIR([config_aux]) dnl Where to put autoconf files
AC_CONFIG_HEADERS([config_aux/config.h]) dnl Automatically generated
AC_CONFIG_FILES([Makefile src/Makefile lib/Makefile include/Makefile scripts/Makefile])
AC_CONFIG_FILES([scripts/f77], [chmod +x scripts/f77])
AC_CONFIG_HEADERS([include/f2c_types.h])
#
# Initialize Automake, minimal version 1.9, with options to make it less
# pedantic, various distribution targets and placing object files together
# inside source dirs.
#
AM_INIT_AUTOMAKE([1.9 foreign dist-bzip2 dist-zip subdir-objects])
# Programs used to build the library
AC_PROG_CC
AM_PROG_CC_C_O # needed to build in subdirs
AC_LANG([C])
AC_PROG_LIBTOOL
# Check the size of the integer types
FC_INT_TEST
FC_LONG_INT_TEST
FC_LONG_LONG_INT_TEST
# Compiler features
AC_C_INLINE
# Checks for header files.
AC_CHECK_HEADERS([fenv.h stddef.h stdlib.h string.h unistd.h])
# Checks for typedefs, structures, and compiler characteristics.
AC_TYPE_SIZE_T
# Checks for library functions.
AC_FUNC_FORK
AC_FUNC_MALLOC
AC_FUNC_REALLOC
AC_FUNC_STRTOD
AC_CHECK_FUNCS([atexit floor isascii memset mkdir pow rmdir sqrt strchr])
AC_CHECK_FUNCS([ftruncate mkstemp mkdtemp isatty atexit onexit tmpfile])
AC_SYS_LARGEFILE
AC_FUNC_FSEEKO
AC_OUTPUT