dnl configure.in for mp3c, WSPse 27 Jun 2001 AC_INIT(src/main.c) AM_CONFIG_HEADER(config.h) AM_INIT_AUTOMAKE(mp3c,0.27) dnl Available languages ALL_LINGUAS="de es it pl pt" AC_PROG_CC AC_ISC_POSIX AC_PROG_INSTALL AC_PROG_MAKE_SET AC_HEADER_STDC AC_CHECK_HEADERS(fcntl.h strings.h sys/ioctl.h sys/time.h unistd.h \ linux/cdrom.h sys/cdio.h signal.h string.h ctype.h \ time.h dirent.h sys/stat.h sys/types.h sys/wait.h \ errno.h libintl.h locale.h) AC_CHECK_LIB(ncurses, main) AC_CHECK_LIB(intl, main) dnl AC_FUNC_ALLOCA cddbpath=/opt/kde/share/apps/kscd/cddb AC_MSG_CHECKING(where to store CDDB-entries) AC_ARG_WITH(cddb-path, [ --with-cddb-path= to set cddb-path], [ cddbpath=${withval} ],[ if ! test -d "$cddbpath"; then cddbpath=$KDEDIR/share/apps/kscd/cddb fi if ! test -d "$cddbpath"; then cddbpath=/usr/X11R6/lib/X11/xmcd/cddb fi if ! test -d "$cddbpath"; then cddbpath=/usr/local/X11R6/lib/X11/xmcd/cddb fi if ! test -d "$cddbpath"; then cddbpath=/usr/lib/xmcd/cddb fi if ! test -d "$cddbpath"; then cddbpath=/usr/local/lib/xmcd/cddb fi if ! test -d "$cddbpath"; then cddbpath=/usr/share/xmcd/cddb fi if ! test -d "$cddbpath"; then cddbpath=/usr/local/share/xmcd/cddb fi if ! test -d "$cddbpath"; then cddbpath="$HOME/cddb" fi ]) AC_MSG_RESULT($cddbpath) AC_DEFINE_UNQUOTED(CONF_CDDB_PATH, "${cddbpath}") AM_GNU_GETTEXT CFLAGS="$CFLAGS -Wall" AC_OUTPUT(doc/Makefile doc/mp3c.1 intl/Makefile patches/Makefile \ po/Makefile.in src/Makefile src/mp3creat.h Makefile)