dnl Process this file with autoconf to produce a configure script. AC_INIT(configure.in) AM_INIT_AUTOMAKE(gweled, 0.7) AM_MAINTAINER_MODE AM_CONFIG_HEADER(config.h) AC_ISC_POSIX AC_PROG_CC AM_PROG_CC_STDC AC_HEADER_STDC pkg_modules="libglade-2.0,libgnomeui-2.0,librsvg-2.0" PKG_CHECK_MODULES(PACKAGE, [$pkg_modules]) AC_SUBST(PACKAGE_CFLAGS) AC_SUBST(PACKAGE_LIBS) CFLAGS="$CFLAGS `libmikmod-config --cflags`" LIBS="$LIBS `libmikmod-config --libs`" AC_ARG_ENABLE(setgid, [ --disable-setgid Disable the use of setgid binaries], [case "${enableval}" in yes) setgid=true ;; no) setgid=false ;; *) AC_MSG_ERROR(bad value ${enableval} for --disable-setgid) ;; esac],[setgid=true]) AC_SUBST(setgid) AC_ARG_WITH(scores-group, [ --with-scores-group=group Group for the high score tables and binaries], scores_group="$withval",scores_group="games") AC_SUBST(scores_group) AC_ARG_WITH(scores-user, [ --with-scores-user=user User for the high score tables], scores_user="$withval",scores_user="games") AC_SUBST(scores_user) scoredir='${localstatedir}/games' AC_SUBST(scoredir) AC_OUTPUT([ Makefile src/Makefile ]) echo " Configuration: Source code location: ${srcdir} Compiler: ${CC} Use setgid binaries $setgid Scores user $scores_user Scores & setgid group $scores_group " if grep -q "$scores_group:" /etc/group ; then :; else echo echo "Warning: The $scores_group group does not exist. Installation will" echo " succeed, but high score logging will not work. To specify a" echo " different group use the --with-scores-group option." echo fi