ViewVC Help
View File | Revision Log | Show Annotations | Revision Graph | Root Listing
root/cebix/BasiliskII/src/Unix/aclocal.m4
(Generate patch)

Comparing BasiliskII/src/Unix/aclocal.m4 (file contents):
Revision 1.6 by cebix, 2000-11-02T14:45:15Z vs.
Revision 1.8 by cebix, 2001-03-06T18:41:12Z

# Line 245 | Line 245 | AC_ARG_ENABLE(esdtest, [  --disable-esdt
245    if test "$ESD_CONFIG" = "no" ; then
246      no_esd=yes
247    else
248    AC_LANG_SAVE
249    AC_LANG_C
248      ESD_CFLAGS=`$ESD_CONFIG $esdconf_args --cflags`
249      ESD_LIBS=`$ESD_CONFIG $esdconf_args --libs`
250  
# Line 323 | Line 321 | int main ()
321   ],, no_esd=yes,[echo $ac_n "cross compiling; assumed OK... $ac_c"])
322         CFLAGS="$ac_save_CFLAGS"
323         LIBS="$ac_save_LIBS"
326       AC_LANG_RESTORE
324       fi
325    fi
326    if test "x$no_esd" = x ; then
# Line 343 | Line 340 | int main ()
340            echo "*** Could not run ESD test program, checking why..."
341            CFLAGS="$CFLAGS $ESD_CFLAGS"
342            LIBS="$LIBS $ESD_LIBS"
346          AC_LANG_SAVE
347          AC_LANG_C
343            AC_TRY_LINK([
344   #include <stdio.h>
345   #include <esd.h>
# Line 364 | Line 359 | int main ()
359            echo "*** may want to edit the esd-config script: $ESD_CONFIG" ])
360            CFLAGS="$ac_save_CFLAGS"
361            LIBS="$ac_save_LIBS"
367          AC_LANG_RESTORE
362         fi
363       fi
364       ESD_CFLAGS=""
# Line 376 | Line 370 | int main ()
370    rm -f conf.esdtest
371   ])
372  
373 + dnl AM_ESD_SUPPORTS_MULTIPLE_RECORD([ACTION-IF-SUPPORTS [, ACTION-IF-NOT-SUPPORTS]])
374 + dnl Test, whether esd supports multiple recording clients (version >=0.2.21)
375 + dnl
376 + AC_DEFUN(AM_ESD_SUPPORTS_MULTIPLE_RECORD,
377 + [dnl
378 +  AC_MSG_NOTICE([whether installed esd version supports multiple recording clients])
379 +  ac_save_ESD_CFLAGS="$ESD_CFLAGS"
380 +  ac_save_ESD_LIBS="$ESD_LIBS"
381 +  AM_PATH_ESD(0.2.21,
382 +    ifelse([$1], , [
383 +      AM_CONDITIONAL(ESD_SUPPORTS_MULTIPLE_RECORD, true)
384 +      AC_DEFINE(ESD_SUPPORTS_MULTIPLE_RECORD, 1,
385 +        [Define if you have esound with support of multiple recording clients.])],
386 +    [$1]),
387 +    ifelse([$2], , [AM_CONDITIONAL(ESD_SUPPORTS_MULTIPLE_RECORD, false)], [$2])
388 +    if test "x$ac_save_ESD_CFLAGS" != x ; then
389 +       ESD_CFLAGS="$ac_save_ESD_CFLAGS"
390 +    fi
391 +    if test "x$ac_save_ESD_LIBS" != x ; then
392 +       ESD_LIBS="$ac_save_ESD_LIBS"
393 +    fi
394 +  )
395 + ])
396 +
397 + # Define a conditional.
398 +
399 + AC_DEFUN(AM_CONDITIONAL,
400 + [AC_SUBST($1_TRUE)
401 + AC_SUBST($1_FALSE)
402 + if $2; then
403 +  $1_TRUE=
404 +  $1_FALSE='#'
405 + else
406 +  $1_TRUE='#'
407 +  $1_FALSE=
408 + fi])
409 +

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines