summaryrefslogtreecommitdiff
path: root/configure.ac
diff options
context:
space:
mode:
authorSND\weimingzhi_cp <SND\weimingzhi_cp@e17a0e51-4ae3-4d35-97c3-1a29b211df97>2010-07-12 00:49:29 +0000
committerSND\weimingzhi_cp <SND\weimingzhi_cp@e17a0e51-4ae3-4d35-97c3-1a29b211df97>2010-07-12 00:49:29 +0000
commitb640cf7a0fcbc352d221b588b73baadf72b92b72 (patch)
treef0f73442b71da2135213898abbab909d45e0f30d /configure.ac
parent133ada0c77babe150a2da5811446e70ab65adfed (diff)
downloadpcsxr-b640cf7a0fcbc352d221b588b73baadf72b92b72.tar.gz
use pkg-config for libcdio detection
git-svn-id: https://pcsxr.svn.codeplex.com/svn/pcsxr@54479 e17a0e51-4ae3-4d35-97c3-1a29b211df97
Diffstat (limited to 'configure.ac')
-rw-r--r--configure.ac12
1 files changed, 4 insertions, 8 deletions
diff --git a/configure.ac b/configure.ac
index 149563b9..326a221e 100644
--- a/configure.ac
+++ b/configure.ac
@@ -94,17 +94,13 @@ AC_ARG_ENABLE(libcdio, [ --enable-libcdio use GNU libcdio for CD-ROM sup
[ BUILD_LIBCDIO="$enableval" ],[ BUILD_LIBCDIO="no" ])
if test "$BUILD_LIBCDIO" = "yes"; then
- AC_CHECK_HEADER(cdio/mmc.h, have_mmc=yes, have_mmc=no)
- if test "x$have_mmc" = xno; then
- AC_MSG_ERROR([unable to find libcdio headers])
- fi
- AC_CHECK_LIB(cdio, cdio_open, have_cdiolib=yes, have_cdiolib=no)
- if test "x$have_cdiolib" = xno; then
- AC_MSG_ERROR([unable to find libcdio library])
- fi
+ PKG_CHECK_MODULES(LIBCDIO, libcdio, [], AC_MSG_ERROR([*** libcdio not found!]))
AM_CONDITIONAL(USE_LIBCDIO, true)
fi
+AC_SUBST(LIBCDIO_CFLAGS)
+AC_SUBST(LIBCDIO_LIBS)
+
AC_ARG_ENABLE(opengl, [ --enable-opengl build OpenGL plugin (default=no)],
[ BUILD_OPENGL="$enableval" ],[ BUILD_OPENGL="no" ])