-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathconfigure.in
73 lines (58 loc) · 1.43 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
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
AC_INIT(interface/interface.c)
VERSION="10.3pre"
AC_SUBST(VERSION)
cp $srcdir/configure.guess $srcdir/config.guess
cp $srcdir/configure.sub $srcdir/config.sub
AC_CANONICAL_HOST
if test -z "$CC"; then
AC_PROG_CC
fi
AC_PROG_RANLIB
AC_CHECK_PROG(AR,ar,ar)
AC_CHECK_PROG(INSTALL,install,install)
if test -z "$GCC"; then
DEBUG="-g"
OPT="-O"
else
case $host in
i?86-*-linux*)
DEBUG="-g -Wall -fsigned-char"
OPT="-O2 -ffast-math -fsigned-char -finline-functions";;
*)
DEBUG="-g -Wall -fsigned-char"
OPT="-O2 -fsigned-char";;
esac
fi
AC_HEADER_STDC
AC_CHECK_SIZEOF(short)
AC_CHECK_SIZEOF(int)
AC_CHECK_SIZEOF(long)
AC_CHECK_SIZEOF(long long)
case 2 in
$ac_cv_sizeof_short) SIZE16="short";;
$ac_cv_sizeof_int) SIZE16="int";;
esac
case 4 in
$ac_cv_sizeof_short) SIZE32="short";;
$ac_cv_sizeof_int) SIZE32="int";;
$ac_cv_sizeof_long) SIZE32="long";;
esac
AC_CHECK_TYPE(int16_t,SIZE16="int16_t",,)
AC_CHECK_TYPE(int32_t,SIZE32="size32_t",,)
if test -z "$SIZE16"; then
AC_MSG_ERROR(No 16 bit type found on this platform!)
fi
if test -z "$SIZE32"; then
AC_MSG_ERROR(No 32 bit type found on this platform!)
fi
AC_CHECK_HEADERS(linux/sbpcd.h, SBPCD_H="-DSBPCD_H='1' ")
AC_CHECK_HEADERS(linux/ucdrom.h, UCDROM_H="-DUCDROM_H='1' ")
AC_PROG_MAKE_SET
AC_C_CONST
AC_SUBST(SBPCD_H)
AC_SUBST(UCDROM_H)
AC_SUBST(TYPESIZES)
AC_SUBST(OPT)
AC_SUBST(DEBUG)
AC_SUBST(CC)
AC_OUTPUT(Makefile interface/Makefile paranoia/Makefile cdparanoia-3.pc)