-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathconfigure.in
49 lines (39 loc) · 1.14 KB
/
configure.in
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
dnl Process this file with autoconf to produce a configure script.
AC_INIT(main.c)
AM_INIT_AUTOMAKE(ffsb, 6.0-RC2)
AM_CONFIG_HEADER(config.h)
AC_CANONICAL_HOST
dnl need to define _ALL_SOURCE and _THREAD_SAFE on AIX
AC_AIX
case "${host}" in
*aix*)
CFLAGS="${CFLAGS} -D_THREAD_SAFE"
;;
*linux*)
CFLAGS="${CFLAGS} -D_REENTRANT"
;;
*)
echo "detected unknown platform : ${host} : compiles may fail"
CFLAGS="${CFLAGS} -D_REENTRANT"
;;
esac
dnl Checks for programs.
AC_PROG_CC
dnl Checks for libraries.
dnl Replace `main' with a function in -lm:
AC_CHECK_LIB(m, main)
dnl Replace `main' with a function in -lpthread:
AC_CHECK_LIB(pthread, main)
dnl Checks for header files.
AC_HEADER_STDC
AC_HEADER_SYS_WAIT
AC_CHECK_HEADERS(pthread.h fcntl.h limits.h stdint.h sys/time.h unistd.h sys/vfs.h sys/limits.h)
dnl Checks for typedefs, structures, and compiler characteristics.
AC_C_CONST
AC_HEADER_TIME
dnl Checks for library functions.
AC_FUNC_SETVBUF_REVERSED
AC_CHECK_FUNCS(system gettimeofday mkdir strerror open64 stat64 fseeko64 lrand48_r srand48_r)
AC_SUBST(CFLAGS)
AC_SUBST(CC)
AC_OUTPUT(Makefile, echo timestamp > stamp-h)