Mercurial > octave-nkf
comparison configure.ac @ 19501:e30c88336ee9
Added checks for sndfile in configure.ac
* configure.ac: added checks for libsndfile, and export HAVE_SNDFILE if
sndfile is found
author | Vytautas Jančauskas <unaudio@gmail.com> |
---|---|
date | Wed, 11 Sep 2013 19:14:50 +0300 |
parents | 3c35ee570366 |
children | 23833e1bfa2e |
comparison
equal
deleted
inserted
replaced
19500:3c35ee570366 | 19501:e30c88336ee9 |
---|---|
934 LIBS="$save_LIBS" | 934 LIBS="$save_LIBS" |
935 CPPFLAGS="$save_CPPFLAGS" | 935 CPPFLAGS="$save_CPPFLAGS" |
936 | 936 |
937 ### Check for sndfile | 937 ### Check for sndfile |
938 | 938 |
939 SNDFILE_CPPFLAGS=`$PKG_CONFIG --cflags-only-I sndfile` | 939 SNDFILE_CPPFLAGS= |
940 SNDFILE_LDFLAGS=`$PKG_CONFIG --libs-only-L sndfile` | 940 SNDFILE_LDFLAGS= |
941 SNDFILE_LIBS=`$PKG_CONFIG --libs-only-l sndfile` | 941 SNDFILE_LIBS= |
942 | 942 |
943 CPPFLAGS="$SNDFILE_CPPFLAGS $CPPFLAGS" | 943 warn_sndfile="$sndfile library fails tests. The audioinfo, audioread and audiowrite functions for reading and writing audio files will not be fully functional." |
944 LIBS="$SNDFILE_LDFLAGS $SNDFILE_LIBS $LIBS" | 944 |
945 PKG_CHECK_EXISTS([sndfile], [ | |
946 SNDFILE_CPPFLAGS=`$PKG_CONFIG --cflags-only-I sndfile` | |
947 SNDFILE_LDFLAGS=`$PKG_CONFIG --libs-only-L sndfile` | |
948 SNDFILE_LIBS=`$PKG_CONFIG --libs-only-l sndfile` | |
949 warn_sndfile= | |
950 ]) | |
951 | |
952 if test -z "$warn_sndfile"; then | |
953 AC_DEFINE(HAVE_SNDFILE, 1, | |
954 [Define to 1 if sndfile is available.]) | |
955 else | |
956 SNDFILE_CPPFLAGS= | |
957 SNDFILE_LDFLAGS= | |
958 SNDFILE_LIBS= | |
959 fi | |
945 | 960 |
946 AC_SUBST(SNDFILE_CPPFLAGS) | 961 AC_SUBST(SNDFILE_CPPFLAGS) |
947 AC_SUBST(SNDFILE_LDFLAGS) | 962 AC_SUBST(SNDFILE_LDFLAGS) |
948 AC_SUBST(SNDFILE_LIBS) | 963 AC_SUBST(SNDFILE_LIBS) |
949 | 964 |