mirror of
https://github.com/alsa-project/alsa-tools.git
synced 2025-10-31 22:25:34 -04:00
Support both GTK+1.2 and GTK+2.x
Support both GTK+ 1.2 and GTK+ 2.x in single configure scripts. GTK+ 2.x is used unless --with-gtk2=no is given. If you have no gtk1 or gtk2 devel packages, use configure.in-gtk1 or -gtk2 and do autoreconf.
This commit is contained in:
parent
3cda29dba9
commit
5341e4ece0
12 changed files with 114 additions and 56 deletions
|
|
@ -3,6 +3,17 @@ AM_INIT_AUTOMAKE(rmedigicontrol, 0.3.5a)
|
|||
AC_PROG_CC
|
||||
AC_PROG_INSTALL
|
||||
AC_HEADER_STDC
|
||||
|
||||
AC_ARG_WITH(gtk2,
|
||||
[ --with-gtk2=yes,no Build with GTK+2 (default = yes)],
|
||||
with_gtk2="$withval", with_gtk2="yes")
|
||||
|
||||
if test "$with_gtk2" = "yes"; then
|
||||
|
||||
PKG_CHECK_MODULES(RMEDIGICONTROL, gtk+-2.0 alsa >= 1.0.0)
|
||||
|
||||
else
|
||||
|
||||
AM_PATH_GTK(1.0.1)
|
||||
AM_PATH_ALSA(1.0.0)
|
||||
RMEDIGICONTROL_CFLAGS="$CFLAGS $ALSA_CFLAGS $GTK_CFLAGS"
|
||||
|
|
@ -10,4 +21,6 @@ RMEDIGICONTROL_LIBS="$LIBS $ALSA_LIBS $GTK_LIBS"
|
|||
AC_SUBST(RMEDIGICONTROL_CFLAGS)
|
||||
AC_SUBST(RMEDIGICONTROL_LIBS)
|
||||
|
||||
fi
|
||||
|
||||
AC_OUTPUT(Makefile)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue