# Process this file with autoconf to produce a configure script. AC_PREREQ(2.58) AC_INIT(Analog VU meter plugin,0.9.2,[vumeter@mcfish.org],vumeter) AC_CANONICAL_TARGET([]) AM_INIT_AUTOMAKE([vumeter],[0.9.2]) AC_CONFIG_SRCDIR([src/main.c]) AM_CONFIG_HEADER([config.h]) AM_DISABLE_STATIC # Checks for programs. ################################################### AC_PROG_CC AC_ISC_POSIX AC_HEADER_STDC AC_PROG_INSTALL AM_PROG_LIBTOOL # Checks for libraries. ################################################### AC_PATH_X AC_PATH_XTRA AM_PATH_GLIB(1.2.10,,AC_MSG_ERROR([*** GLIB >= 1.2.10 not installed - please install first ***])) AM_PATH_XMMS(1.2.9,,AC_MSG_ERROR([*** XMMS >= 1.2.9 not installed - please install first ***])) AM_PATH_GTK(1.2.10,,AC_MSG_ERROR([*** GTK+ >= 1.2.10 not installed - please install first ***]),gthread) AM_PATH_GDK_PIXBUF(0.21.0,,AC_MSG_ERROR([*** GDK_PIXBUF >= 0.21.0 not installed - please install first ***])) AC_CHECK_HEADER(pthread.h,,AC_MSG_ERROR([*** POSIX thread support not installed - please install first ***])) #PTHREAD_LIBS=error #AC_CHECK_LIB(pthread, pthread_attr_init,PTHREAD_LIBS="-lpthread") #if test "x$PTHREAD_LIBS" = xerror; then # AC_CHECK_LIB(pthreads, pthread_attr_init,PTHREAD_LIBS="-lpthreads") #fi #if test "x$PTHREAD_LIBS" = xerror; then # AC_CHECK_LIB(c_r, pthread_attr_init,PTHREAD_LIBS="-lc_r") #fi #if test "x$PTHREAD_LIBS" = xerror; then # AC_CHECK_FUNC(pthread_attr_init, PTHREAD_LIBS="") #fi #if test "x$PTHREAD_LIBS" = xerror; then # AC_MSG_ERROR(*** Unable to locate working posix thread library ***) #fi #AC_SUBST(PTHREAD_LIBS) if test x$have_x = xyes; then CFLAGS="$CFLAGS $X_CFLAGS" fi # Checks for header files. ####################################################### AC_HEADER_DIRENT AC_HEADER_STDC AC_CHECK_HEADERS([stdlib.h string.h sys/time.h unistd.h]) # Checks for typedefs, structures, and compiler characteristics. ################################################################ AC_HEADER_TIME # Checks for library functions. ######################################################## AC_FUNC_CLOSEDIR_VOID AC_FUNC_LSTAT AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK AC_CHECK_FUNCS([floor gettimeofday sqrt strtol]) AC_CONFIG_FILES([Makefile src/Makefile]) AC_OUTPUT