1998-08-13 15:43:39 +00:00
|
|
|
dnl Process this file with autoconf to produce a configure script.
|
1999-01-30 19:12:34 +00:00
|
|
|
AC_INIT(alsamixer/alsamixer.c)
|
1998-08-13 15:43:39 +00:00
|
|
|
AC_PREFIX_DEFAULT(/usr)
|
1999-08-26 12:59:22 +00:00
|
|
|
AM_INIT_AUTOMAKE(alsa-utils, 0.5.0)
|
1998-08-13 15:43:39 +00:00
|
|
|
|
|
|
|
dnl Checks for programs.
|
|
|
|
AC_PROG_CC
|
1999-01-30 19:12:34 +00:00
|
|
|
AC_PROG_CXX
|
1998-08-13 15:43:39 +00:00
|
|
|
AC_PROG_INSTALL
|
|
|
|
AC_PROG_LN_S
|
1998-10-29 22:49:24 +00:00
|
|
|
AC_PROG_YACC
|
1999-01-30 19:12:34 +00:00
|
|
|
AM_PROG_LEX
|
|
|
|
AM_PATH_ALSA(0.1.1)
|
1998-08-13 15:43:39 +00:00
|
|
|
|
|
|
|
dnl Checks for header files.
|
|
|
|
AC_HEADER_STDC
|
1999-01-30 19:12:34 +00:00
|
|
|
AC_CHECK_LIB(ncurses, initscr,
|
|
|
|
[ CURSESINC='<ncurses.h>'; CURSESLIB='-lncurses'; ], [
|
|
|
|
AC_CHECK_LIB(curses, initscr,
|
|
|
|
[ CURSESINC='<curses.h>'; CURSESLIB='-lcurses'; ])
|
|
|
|
])
|
|
|
|
|
|
|
|
AC_SUBST(CURSESINC)
|
|
|
|
AC_SUBST(CURSESLIB)
|
|
|
|
|
1999-06-03 20:28:05 +00:00
|
|
|
dnl Check for Gtk+
|
|
|
|
AM_PATH_GTK(1.0.1)
|
|
|
|
CFLAGS="$CFLAGS $GTK_CFLAGS"
|
1999-06-13 10:09:54 +00:00
|
|
|
# LDFLAGS="$LDFLAGS $GTK_LIBS"
|
1999-06-03 21:26:41 +00:00
|
|
|
|
1999-06-03 20:28:05 +00:00
|
|
|
|
1999-01-30 19:12:34 +00:00
|
|
|
AM_CONFIG_HEADER(include/aconfig.h)
|
1998-08-13 15:43:39 +00:00
|
|
|
|
|
|
|
dnl Checks for typedefs, structures, and compiler characteristics.
|
|
|
|
AC_C_CONST
|
|
|
|
AC_C_INLINE
|
|
|
|
AC_HEADER_TIME
|
|
|
|
|
|
|
|
dnl Checks for library functions.
|
|
|
|
AC_PROG_GCC_TRADITIONAL
|
|
|
|
|
1999-03-08 16:51:53 +00:00
|
|
|
SAVE_UTIL_VERSION
|
|
|
|
|
1999-06-04 14:53:01 +00:00
|
|
|
AM_CONDITIONAL(COND_XAMIXER2, test "x$GTK_LIBS" != "x")
|
|
|
|
if test "x$GTK_LIBS" = "x"; then
|
|
|
|
AC_MSG_RESULT(Not building XAmixer2 as Gtk+ was not found.)
|
|
|
|
fi
|
1999-07-29 20:11:15 +00:00
|
|
|
AM_CONDITIONAL(COND_GAMIX, test "x$GTK_LIBS" != "x")
|
|
|
|
if test "x$GTK_LIBS" = "x"; then
|
|
|
|
AC_MSG_RESULT(Not building gamix as Gtk+ was not found.)
|
|
|
|
fi
|
1999-06-03 20:28:05 +00:00
|
|
|
AC_OUTPUT(Makefile alsactl/Makefile alsamixer/Makefile amixer/Makefile aplay/Makefile \
|
1999-07-29 20:11:15 +00:00
|
|
|
include/Makefile utils/Makefile utils/alsa-utils.spec xamixer2/Makefile
|
2000-01-04 12:39:00 +00:00
|
|
|
gamix/Makefile seq/Makefile seq/aconnect/Makefile seq/aseqnet/Makefile)
|