diff options
author | Memphiz <memphis@machzwo.de> | 2011-09-04 20:22:28 +0200 |
---|---|---|
committer | Memphiz <memphis@machzwo.de> | 2011-09-08 21:41:34 +0200 |
commit | 826f0ca616b819a2fe3f6d338f66480f9cffe6d5 (patch) | |
tree | 89266bf079650d07290ca87d532ae8190053f2d1 /configure.in | |
parent | 465fa52dab474f4350afd328e462c8d0b41b3a7a (diff) |
[add] - libafpclient to configure
Diffstat (limited to 'configure.in')
-rwxr-xr-x | configure.in | 34 |
1 files changed, 34 insertions, 0 deletions
diff --git a/configure.in b/configure.in index 49339199e5..88bc216d14 100755 --- a/configure.in +++ b/configure.in @@ -109,6 +109,8 @@ librtmp_not_found="== Could not find libRTMP. RTMP support disabled. ==" librtmp_disabled="== RTMP support disabled. ==" libnfs_not_found="== Could not find libnfs. NFS support disabled. ==" libnfs_disabled="== NFS support disabled. ==" +libafpclient_not_found="== Could not find libafpclient. AFP support disabled. ==" +libafpclient_disabled="== AFP support disabled. ==" alsa_not_found="== Could not find ALSA. ALSA support disabled. ==" dbus_not_found="== Could not find DBUS. DBUS support disabled. ==" @@ -274,6 +276,11 @@ AC_ARG_ENABLE([nfs], [use_libnfs=$enableval], [use_libnfs=auto]) +AC_ARG_ENABLE([afpclient], + [AS_HELP_STRING([--enable-afp], + [enable AFP support via libafpclient (default is auto)])], + [use_libafpclient=$enableval], + [use_libafpclient=auto]) AC_ARG_ENABLE([ffmpeg_libvorbis], [AS_HELP_STRING([--enable-ffmpeg-libvorbis], @@ -950,6 +957,27 @@ else AC_MSG_NOTICE($libnfs_disabled) fi + +# libafpclient +if test "$use_libafpclient" != "no"; then + AC_CHECK_HEADERS([afp/libafpclient.h],, + [if test "$use_libafpclient" = "yes"; then + AC_MSG_ERROR($libafpclient_not_found) + elif test "$use_libafpclient" != "no"; then + AC_MSG_NOTICE($libafpclient_not_found) + use_libafpclient="no" + fi + ]) + if test "$use_libafpclient" != "no"; then + XB_FIND_SONAME([AFPCLIENT], [afpclient], [use_libafpclient]) + fi + if test "$use_libafpclient" != "no"; then + AC_DEFINE([HAVE_LIBAFPCLIENT], [1], [Whether to use libafpclient library.]) + fi +else + AC_MSG_NOTICE($libafpclient_disabled) +fi + ### External libraries checks # External FFmpeg if test "$use_external_ffmpeg" = "yes"; then @@ -1535,6 +1563,11 @@ else final_message="$final_message\n libnfs support:\tNo" fi +if test "$use_libafpclient" != "no"; then + final_message="$final_message\n libafpclient support:\tYes" +else + final_message="$final_message\n libafpclient support:\tNo" +fi if test "$use_optical_drive" = "yes"; then final_message="$final_message\n Optical drive:\tYes" @@ -1646,6 +1679,7 @@ AC_SUBST(USE_VDPAU) AC_SUBST(USE_VAAPI) AC_SUBST(USE_CRYSTALHD) AC_SUBST(USE_LIBNFS) +AC_SUBST(USE_LIBAFPCLIENT) AC_SUBST(USE_VDA) AC_SUBST(USE_OPENMAX) AC_SUBST(USE_PULSE) |