Premiers fichiers n�cessaires � autoconf
[vlc.git] / configure.in
1 dnl Autoconf settings for vlc
2 AC_INIT(src/interface/main.c)
3 AC_CONFIG_HEADER(include/defs.h)
4 AC_CANONICAL_HOST
5
6 VLC_VERSION=0.1.99
7 AC_SUBST(VLC_VERSION)
8 VLC_CODENAME=Onatopp
9 AC_SUBST(VLC_CODENAME)
10
11 dnl Check for tools
12 AC_PROG_MAKE_SET
13 AC_PROG_CC
14 AC_PROG_CPP
15
16 dnl AM_PROG_LIBTOOL
17 AC_PROG_INSTALL
18
19 dnl Check for compiler environment
20 AC_C_CONST
21 AC_C_BIGENDIAN
22
23 dnl Check for system libs needed
24 AC_CHECK_FUNCS(gettimeofday select strerror strtod strtol)
25 AC_CHECK_FUNCS(setenv putenv)
26 AC_CHECK_FUNC(connect,,[AC_CHECK_LIB(socket,connect)])
27 AC_CHECK_FUNC(gethostbyname,,[AC_CHECK_LIB(nsl,gethostbyname)])
28 AC_CHECK_FUNC(nanosleep,,[AC_CHECK_LIB(rt,nanosleep,,[AC_CHECK_LIB(posix4,nanosleep)])])
29 AC_CHECK_FUNCS(usleep)
30 AC_CHECK_FUNC(inet_aton,,[AC_CHECK_LIB(resolv,inet_aton)])
31 AC_FUNC_MMAP
32 AC_FUNC_VPRINTF
33 AC_TYPE_SIGNAL
34 AC_CHECK_LIB(dl, dlopen)
35 AC_CHECK_LIB(gnugetopt, optarg)
36 AC_CHECK_LIB(be, _)
37 AC_CHECK_LIB(game, _)
38 AC_CHECK_LIB(root, _)
39 AC_CHECK_LIB(m, powl)
40 AC_CHECK_LIB(pthread, pthread_create)
41 AC_CHECK_LIB(threads, thread_create)
42
43 dnl check for getopt_long, substitute the distributed versions if not
44 AC_CHECK_FUNC(getopt_long,,[LIBOBJS="$LIBOBJS getopt.o getopt1.o"])
45 AC_SUBST(LIBOBJS)
46
47 AC_CHECK_HEADERS(fcntl.h sys/ioctl.h sys/time.h unistd.h)
48 AC_CHECK_HEADERS(sys/soundcard.h machine/soundcard.h)
49
50 dnl Check for threads library
51 AC_CHECK_HEADERS(cthreads.h pthread.h kernel/sheduler.h kernel/OS.h)
52
53 dnl Checks for typedefs, structures, and compiler characteristics.
54 AC_C_CONST
55 AC_TYPE_SIZE_T
56 AC_HEADER_TIME
57
58 AC_OUTPUT([Makefile])
59