diff options
author | biocrasher <biocrasher@f606c939-3180-4ac9-a4b8-4b8779d57d0a> | 2006-07-13 00:08:45 +0000 |
---|---|---|
committer | biocrasher <biocrasher@f606c939-3180-4ac9-a4b8-4b8779d57d0a> | 2006-07-13 00:08:45 +0000 |
commit | dad971c4a423e39a6cc6886585d25150e0d12c8f (patch) | |
tree | 2cce86963b3fb5de48768395f9a071bb52e3bba6 /recordmydesktop/configure.ac | |
parent | f635ae4bbdb7397764fbc4b1b1cfd6cde2d2ecce (diff) |
This commit was generated by cvs2svn to compensate for changes in r3,
which included commits to RCS files with non-trunk default branches.
git-svn-id: https://recordmydesktop.svn.sourceforge.net/svnroot/recordmydesktop/trunk@4 f606c939-3180-4ac9-a4b8-4b8779d57d0a
Diffstat (limited to 'recordmydesktop/configure.ac')
-rw-r--r-- | recordmydesktop/configure.ac | 58 |
1 files changed, 58 insertions, 0 deletions
diff --git a/recordmydesktop/configure.ac b/recordmydesktop/configure.ac new file mode 100644 index 0000000..2b246e9 --- /dev/null +++ b/recordmydesktop/configure.ac @@ -0,0 +1,58 @@ + # -*- Autoconf -*- +# Process this file with autoconf to produce a configure script. + +AC_PREREQ(2.59) +AC_INIT(src/recordmydesktop.c) +AM_INIT_AUTOMAKE(recordmydesktop,0.2.0,) + +AC_CONFIG_SRCDIR([src/recordmydesktop.c]) +AM_CONFIG_HEADER(config.h) + + + +# Checks for programs. + +AC_PROG_CC + +# Checks for header files. + +AC_HEADER_DIRENT +AC_HEADER_STDC + +AC_PATH_X +AC_CHECK_HEADER([png.h]) +AC_CHECK_HEADER([alsa/asoundlib.h]) +AC_CHECK_HEADERS([sys/time.h unistd.h vorbis/vorbisfile.h ]) + +LDFLAGS="$LD_FLAGS -L$x_libraries " + +CFLAGS="${CFLAGS} -O3 -Wall -D_THREAD_SAFE -pthread" + +# Checks for libraries. + +AC_CHECK_LIB([m],[isnan],,) +AC_CHECK_LIB([z],[deflate],,) +AC_CHECK_LIB([X11],[XOpenDisplay],,AC_MSG_ERROR([Can't find libX11])) +AC_CHECK_LIB([Xext],[XShmQueryVersion],,AC_MSG_ERROR([Can't find libXext])) +AC_CHECK_LIB([Xdamage], [XDamageQueryExtension],,AC_MSG_ERROR([Can't find libXdamage])) +AC_CHECK_LIB([vorbis],[vorbis_info_clear],,AC_MSG_ERROR([Can't find libvorbis])) +AC_CHECK_LIB([vorbisfile],[ov_open],,AC_MSG_ERROR([Can't find libvorbisfile]),-lvorbis) +AC_CHECK_LIB([vorbisenc],[vorbis_encode_init],,AC_MSG_ERROR([Can't find libvorbisenc]),-lvorbis) +AC_CHECK_LIB([ogg],[ogg_stream_init],,AC_MSG_ERROR([Can't find libogg])) +AC_CHECK_LIB([theora],[theora_encode_YUVin],,AC_MSG_ERROR([Can't find libtheora])) +AC_CHECK_LIB([pthread],[pthread_mutex_lock],,AC_MSG_ERROR([Can't find libpthread])) + +AC_CHECK_LIB([asound],[snd_pcm_drain],,AC_MSG_ERROR([Can't find libasound])) + + +# Checks for typedefs, structures, and compiler characteristics. + +# Checks for library functions. +AC_FUNC_CLOSEDIR_VOID +AC_FUNC_MALLOC + +AC_CONFIG_FILES([Makefile + src/Makefile + doc/Makefile ]) +AC_OUTPUT + |