1 |
# Process this file with autoconf to produce a configure script. |
# Process this file with autoconf to produce a configure script. |
2 |
AC_INIT(Qsampler, 0.4.1.2, rncbc@rncbc.org, qsampler) |
AC_INIT(Qsampler, 0.4.1.5, rncbc@rncbc.org, qsampler) |
3 |
|
|
4 |
AC_CONFIG_SRCDIR(src/qsampler.cpp) |
AC_CONFIG_SRCDIR(src/qsampler.cpp) |
5 |
AC_CONFIG_HEADERS(src/config.h) |
AC_CONFIG_HEADERS(src/config.h) |
435 |
AC_DEFINE(CONFIG_ROUND, 1, [Define if round is available.]) |
AC_DEFINE(CONFIG_ROUND, 1, [Define if round is available.]) |
436 |
fi |
fi |
437 |
|
|
|
# Check for X11 unique/single instance. |
|
|
if test "x$ac_xunique" = "xyes"; then |
|
|
AC_DEFINE(CONFIG_XUNIQUE, 1, [Define if X11 unique/single instance is enabled.]) |
|
|
fi |
|
|
|
|
|
# Check for debugging stack-trace. |
|
|
if test "x$ac_stacktrace" = "xyes"; then |
|
|
AC_DEFINE(CONFIG_STACKTRACE, 1, [Define if debugger stack-trace is enabled.]) |
|
|
fi |
|
|
|
|
|
# Some recent distros (eg. fedora, debian) require this. |
|
|
if test "x$ac_cv_lib_X11_main" = "xyes"; then |
|
|
ac_libs="$ac_libs -lX11" |
|
|
fi |
|
|
|
|
|
AC_SUBST(ac_libs) |
|
|
|
|
438 |
|
|
439 |
# Checks for header files. |
# Checks for header files. |
440 |
AC_HEADER_STDC |
AC_HEADER_STDC |
441 |
AC_HEADER_SYS_WAIT |
AC_HEADER_SYS_WAIT |
442 |
AC_CHECK_HEADERS(fcntl.h sys/ioctl.h unistd.h signal.h sys/socket.h) |
AC_CHECK_HEADERS(fcntl.h sys/ioctl.h unistd.h signal.h sys/socket.h) |
443 |
|
|
|
AC_CHECK_HEADER(lscp/client.h, [ac_lscp_h="yes"], [ac_lscp_h="no"]) |
|
|
if test "x$ac_lscp_h" = "xno"; then |
|
|
AC_MSG_ERROR([LSCP headers not found.]) |
|
|
fi |
|
|
|
|
444 |
if test "x$ac_libgig" = "xyes"; then |
if test "x$ac_libgig" = "xyes"; then |
445 |
AC_CHECK_HEADER(libgig/SF.h, [ac_libgig_sf2="yes"], [ac_libgig_sf2="no"]) |
AC_CHECK_HEADER(libgig/SF.h, [ac_libgig_sf2="yes"], [ac_libgig_sf2="no"]) |
446 |
if test "x$ac_libgig_sf2" = "xyes"; then |
if test "x$ac_libgig_sf2" = "xyes"; then |
448 |
fi |
fi |
449 |
fi |
fi |
450 |
|
|
451 |
AC_SUBST(ac_incpath) |
# Check for X11 unique/single instance. |
452 |
|
if test "x$ac_xunique" = "xyes"; then |
453 |
|
AC_DEFINE(CONFIG_XUNIQUE, 1, [Define if X11 unique/single instance is enabled.]) |
454 |
|
# Some recent distros (eg. fedora, debian) require this. |
455 |
|
if test "x$ac_cv_lib_X11_main" = "xyes"; then |
456 |
|
ac_libs="$ac_libs -lX11" |
457 |
|
fi |
458 |
|
fi |
459 |
|
|
460 |
|
# Check for debugging stack-trace. |
461 |
|
if test "x$ac_stacktrace" = "xyes"; then |
462 |
|
AC_DEFINE(CONFIG_STACKTRACE, 1, [Define if debugger stack-trace is enabled.]) |
463 |
|
fi |
464 |
|
|
465 |
AC_SUBST(ac_cflags) |
AC_SUBST(ac_cflags) |
466 |
AC_SUBST(ac_ldflags) |
AC_SUBST(ac_ldflags) |
467 |
|
AC_SUBST(ac_incpath) |
468 |
|
AC_SUBST(ac_libs) |
469 |
|
|
470 |
|
|
471 |
# Checks for typedefs, structures, and compiler characteristics. |
# Checks for typedefs, structures, and compiler characteristics. |