configure.in
changeset 856 d3165b90ee42
parent 846 96ba4eab74fb
child 865 92615154bb68
equal deleted inserted replaced
855:aa4ac9e65d92 856:d3165b90ee42
   372         if test x$ARTSCCONFIG = x -o x$ARTSCCONFIG = x'"$ARTSCCONFIG"'; then
   372         if test x$ARTSCCONFIG = x -o x$ARTSCCONFIG = x'"$ARTSCCONFIG"'; then
   373             : # arts isn't installed
   373             : # arts isn't installed
   374         else
   374         else
   375             ARTSC_CFLAGS=`$ARTSCCONFIG --cflags`
   375             ARTSC_CFLAGS=`$ARTSCCONFIG --cflags`
   376             ARTSC_LIBS=`$ARTSCCONFIG --libs`
   376             ARTSC_LIBS=`$ARTSCCONFIG --libs`
       
   377             ARTSC_PREFIX=`$ARTSCCONFIG --arts-prefix`
   377             AC_MSG_CHECKING(for aRts development environment)
   378             AC_MSG_CHECKING(for aRts development environment)
   378             audio_arts=no
   379             audio_arts=no
   379             save_CFLAGS="$CFLAGS"
   380             save_CFLAGS="$CFLAGS"
   380             CFLAGS="$CFLAGS $ARTSC_CFLAGS"
   381             CFLAGS="$CFLAGS $ARTSC_CFLAGS"
   381             AC_TRY_COMPILE([
   382             AC_TRY_COMPILE([
   389             AC_MSG_RESULT($audio_arts)
   390             AC_MSG_RESULT($audio_arts)
   390             if test x$audio_arts = xyes; then
   391             if test x$audio_arts = xyes; then
   391                 AC_ARG_ENABLE(arts-shared,
   392                 AC_ARG_ENABLE(arts-shared,
   392 [  --enable-arts-shared    dynamically load aRts audio support [default=yes]],
   393 [  --enable-arts-shared    dynamically load aRts audio support [default=yes]],
   393                               , enable_arts_shared=yes)
   394                               , enable_arts_shared=yes)
   394                 arts_lib_spec=`echo $ARTSC_LIBS | sed 's/.*-L\([[^ ]]*\).*/\1\/libartsc.so.*/'`
   395                 arts_lib_spec="$ARTSC_PREFIX/lib/libartsc.so.*"
   395                 arts_lib=`ls $arts_lib_spec | head -1 | sed 's/.*\/\(.*\)/\1/'`
   396                 arts_lib=`ls $arts_lib_spec | head -1 | sed 's/.*\/\(.*\)/\1/'`
   396                 echo "-- $arts_lib_spec -> $arts_lib"
   397                 echo "-- $arts_lib_spec -> $arts_lib"
   397                 if test x$use_dlopen != xyes && \
   398                 if test x$use_dlopen != xyes && \
   398                    test x$enable_arts_shared = xyes; then
   399                    test x$enable_arts_shared = xyes; then
   399                     AC_MSG_ERROR([You must have dlopen() support and use the --enable-dlopen option])
   400                     AC_MSG_ERROR([You must have dlopen() support and use the --enable-dlopen option])