# -*- Autoconf -*- # Process this file with autoconf to produce a configure script. AC_PREREQ([2.69]) AC_INIT([daisy-player], [11.6.2.1], [jos@jlemmens.nl], [], [www.jlemmens.nl]) AM_INIT_AUTOMAKE([subdir-objects]) AC_CONFIG_SRCDIR([config.h.in]) AC_CONFIG_HEADERS([config.h]) # Checks for programs. AC_PROG_AWK AC_PROG_CC AC_PROG_CPP AC_PROG_INSTALL AC_PROG_LN_S AC_PROG_MAKE_SET AC_PROG_RANLIB AC_PROG_CXX AC_PROG_OBJC AC_PROG_OBJCXX AC_PROG_MKDIR_P AM_PROG_AS AM_PROG_GCJ # Checks for libraries. # FIXME: Replace `main' with a function in `-lcdio': AC_CHECK_LIB([cdio], [main]) # FIXME: Replace `main' with a function in `-lcdio_cdda': AC_CHECK_LIB([cdio_cdda], [main]) # FIXME: Replace `main' with a function in `-lcdio_paranoia': AC_CHECK_LIB([cdio_paranoia], [main]) # FIXME: Replace `main' with a function in `-lmagic': AC_CHECK_LIB([magic], [main]) # FIXME: Replace `main' with a function in `-lncursesw': AC_CHECK_LIB([ncursesw], [main]) # FIXME: Replace `main' with a function in `-lsox': AC_CHECK_LIB([sox], [main]) # FIXME: Replace `main' with a function in `-lxml2': AC_CHECK_LIB([xml2], [main]) # FIXME: Replace `main' with a function in `-lmad': AC_CHECK_LIB([mad], [main]) # FIXME: Replace `main' with a function in `-lpulse': AC_CHECK_LIB([pulse], [main]) # Checks for header files. AC_CHECK_HEADERS([fcntl.h libintl.h locale.h stdlib.h string.h strings.h \ sys/ioctl.h unistd.h]) AC_CHECK_HEADERS([cdio/paranoia/cdda.h]) # Checks for typedefs, structures, and compiler characteristics. AC_C_INLINE AC_TYPE_INT16_T AC_TYPE_PID_T AC_TYPE_SIZE_T # Checks for library functions. AM_GNU_GETTEXT([external]) AM_GNU_GETTEXT_VERSION([0.19.7]) AC_FUNC_FORK AC_FUNC_MALLOC AC_FUNC_REALLOC AC_FUNC_STRTOD AC_CHECK_FUNCS([atexit ftruncate mkdir select setlocale strcasecmp strchr strdup strerror strrchr strstr]) AC_CHECK_FUNCS([isascii]) AC_CHECK_FUNCS([rmdir]) AC_CHECK_FUNCS([memmove]) AC_CHECK_FUNCS([memset]) AC_CHECK_FUNCS([munmap]) AC_CHECK_FUNCS([pow]) AC_CHECK_FUNCS([strncasecmp]) AC_CHECK_FUNCS([strtol]) AC_CHECK_HEADERS([termios.h]) AC_CHECK_HEADERS([wchar.h]) AC_FUNC_ERROR_AT_LINE AC_FUNC_MMAP AC_TYPE_SSIZE_T AC_CONFIG_FILES([Makefile doc/Makefile m4/Makefile man/Makefile po/Makefile.in src/Makefile src/madplay/Makefile src/pactl/Makefile]) AM_INIT_AUTOMAKE dnl System type. AC_CANONICAL_HOST dnl Support for libtool. dnl Compiler options. AM_SILENT_RULES([yes]) dnl Checks for header files. AC_HEADER_STDC dnl Checks for typedefs, structures, and compiler characteristics. AC_C_CONST AC_C_BIGENDIAN dnl Checks for library functions. AC_FUNC_VPRINTF AC_CHECK_FUNCS(madvise localeconv) AC_REPLACE_FUNCS(strcasecmp strncasecmp) AC_SEARCH_LIBS(pow, m) AC_SEARCH_LIBS(log10, m) AC_MSG_CHECKING([whether to use mmap]) AC_CACHE_SAVE AC_MSG_CHECKING([whether to enable profiling]) AC_MSG_RESULT(${enable_profiling-no}) AC_MSG_CHECKING([whether to enable debugging]) AC_MSG_RESULT(${enable_experimental-no}) dnl Create output files. AC_PROG_YACC AC_CHECK_FUNCS([__argz_count]) AC_CHECK_FUNCS([__argz_next]) AC_CHECK_FUNCS([__argz_stringify]) AC_CHECK_FUNCS([nl_langinfo]) AC_CHECK_FUNCS([strchr]) AC_CHECK_FUNCS([strcspn]) AC_CHECK_FUNCS([strrchr]) AC_CHECK_FUNCS([strstr]) AC_CHECK_HEADERS([float.h]) AC_CHECK_HEADERS([langinfo.h]) AC_CHECK_HEADERS([libintl.h]) AC_CHECK_HEADERS([locale.h]) AC_CHECK_HEADERS([malloc.h]) AC_CHECK_HEADERS([stdio_ext.h]) AC_CHECK_HEADER_STDBOOL AC_CHECK_HEADER(id3tag.h, [], [ AC_MSG_ERROR([id3tag.h was not found *** You must first install libid3tag before you can build this package. *** If libid3tag is already installed, you may need to use the CPPFLAGS *** environment variable to specify its installed location, e.g. -I