third_party_alsa-utils/configure.in

70 lines
2.0 KiB
Plaintext
Raw Normal View History

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)
2003-10-21 17:41:36 +00:00
AM_INIT_AUTOMAKE(alsa-utils, 0.9.8)
1998-08-13 15:43:39 +00:00
dnl Checks for programs.
dnl try to gues cross-compiler if not set
if test "x$target" != "x$host" -a -z "`echo $CC | grep -e '-gcc'`";
then
AC_MSG_CHECKING(for cross-compiler)
which ${program_prefix}gcc >/dev/null 2>&1 && CC=${program_prefix}gcc
which ${target_cpu}-${target_os}-gcc >/dev/null 2>&1 \
&& CC=${target_cpu}-${target-os}-gcc
which ${target_cpu}-${target_vendor}-${target_os}-gcc >/dev/null 2>&1 \
&& CC=${target_cpu}-${target_vendor}-${target_os}-gcc
AC_MSG_RESULT($CC)
fi
1998-08-13 15:43:39 +00:00
AC_PROG_CC
dnl AC_PROG_CXX
1998-08-13 15:43:39 +00:00
AC_PROG_INSTALL
AC_PROG_LN_S
2001-02-25 22:37:18 +00:00
AM_PATH_ALSA(0.9.0)
1998-08-13 15:43:39 +00:00
AC_ARG_ENABLE(alsamixer,
[ --disable-alsamixer Disable alsamixer compilation],
[case "${enableval}" in
yes) alsamixer=true ;;
no) alsamixer=false ;;
*) AC_MSG_ERROR(bad value ${enableval} for --enable-alsamixer) ;;
esac],[alsamixer=true])
AM_CONDITIONAL(ALSAMIXER, test x$alsamixer = xtrue)
1998-08-13 15:43:39 +00:00
dnl Checks for header files.
AC_HEADER_STDC
2003-06-16 18:46:06 +00:00
if test x$alsamixer = xtrue; then
AC_CHECK_LIB(ncurses, initscr,
[ CURSESINC='<ncurses.h>'; CURSESLIB='-lncurses'; ], [
AC_CHECK_LIB(curses, initscr,
[ CURSESINC='<curses.h>'; CURSESLIB='-lcurses'; ],
AC_MSG_ERROR(this packages requires a curses library))
])
fi
1999-01-30 19:12:34 +00:00
AC_SUBST(CURSESINC)
AC_SUBST(CURSESLIB)
dnl Check for Gtk+
dnl AM_PATH_GTK(1.0.1)
dnl CFLAGS="$CFLAGS $GTK_CFLAGS"
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
AC_OUTPUT(Makefile alsactl/Makefile alsamixer/Makefile amixer/Makefile aplay/Makefile \
include/Makefile iecset/Makefile utils/Makefile utils/alsa-utils.spec \
seq/Makefile seq/aconnect/Makefile seq/aseqnet/Makefile)