diff options
author | biocrasher <biocrasher@f606c939-3180-4ac9-a4b8-4b8779d57d0a> | 2006-07-29 00:46:08 +0000 |
---|---|---|
committer | biocrasher <biocrasher@f606c939-3180-4ac9-a4b8-4b8779d57d0a> | 2006-07-29 00:46:08 +0000 |
commit | 64ff67035858551a9e789714ddbeba235b61cace (patch) | |
tree | db0ed47cc8853b0102e92dca90f6ce179d66eb7a | |
parent | 2ac4187271140d5c8cafd69233b09f3350878663 (diff) |
added ac_path_xtra macro
git-svn-id: https://recordmydesktop.svn.sourceforge.net/svnroot/recordmydesktop/trunk@28 f606c939-3180-4ac9-a4b8-4b8779d57d0a
-rw-r--r-- | recordmydesktop/configure.ac | 9 | ||||
-rw-r--r-- | recordmydesktop/src/Makefile.am | 2 |
2 files changed, 8 insertions, 3 deletions
diff --git a/recordmydesktop/configure.ac b/recordmydesktop/configure.ac index a5875c4..2beab33 100644 --- a/recordmydesktop/configure.ac +++ b/recordmydesktop/configure.ac @@ -20,19 +20,24 @@ AC_HEADER_DIRENT AC_HEADER_STDC AC_PATH_X +AC_PATH_XTRA + 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 " +LDFLAGS="$LD_FLAGS -L$x_libraries $X_LIBS $X_EXTRA_LIBS $X_PRE_LIBS" 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([X11],[XOpenDisplay],,AC_MSG_ERROR([Can't find libX11]), + -L$x_libraries $X_PRE_LIBS) 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])) diff --git a/recordmydesktop/src/Makefile.am b/recordmydesktop/src/Makefile.am index d3d7a20..bec4006 100644 --- a/recordmydesktop/src/Makefile.am +++ b/recordmydesktop/src/Makefile.am @@ -22,7 +22,7 @@ recordmydesktop_SOURCES= recordmydesktop.c\ encode_sound_buffer.c\ init_encoder.c -INCLUDES= $(all_includes) -I../include +INCLUDES= $(all_includes) -I../include -I$x_includes recordmydesktop_LDFLAGS = -D_THREAD_SAFE -pthread -Wall -O3 |