dnl Process this file with autoconf to produce a configure script AC_INIT(src/main.c) GDANCER_MAJOR_VERSION=0 GDANCER_MINOR_VERSION=4 GDANCER_MICRO_VERSION=6 GDANCER_VERSION=${GDANCER_MAJOR_VERSION}.${GDANCER_MINOR_VERSION}.${GDANCER_MICRO_VERSION} RELEASE=1 AM_INIT_AUTOMAKE(gdancer, ${GDANCER_VERSION}) AM_CONFIG_HEADER(config.h) AC_PROG_CC AC_PROG_INSTALL AM_DISABLE_STATIC AM_PROG_LIBTOOL dnl Check and set headings AC_HEADER_DIRENT AC_HEADER_STDC AC_CHECK_HEADERS(fcntl.h unistd.h sys/stat.h sys/types.h string.h time.h) AC_C_CONST AC_CHECK_FUNCS(mkdir stat opendir) dnl Available arguments debugging=no AC_ARG_ENABLE(debugging, [ --enable-debugging turn on debuggin messages],,enable_debugging=no) dnl Check for XMMS AM_PATH_XMMS(1.0.0,, AC_MSG_ERROR(Test for XMMS failed. XMMS 1.0.0 or better is required to compile gdancer. If you are using packages of XMMS and have the latest version, please make sure you also have the dev or devel version also installed, it is needed to compile.)) dnl Check for GLIB AM_PATH_GLIB(1.2.0,, AC_MSG_ERROR(Test for GLIB failed. GLIB 1.2.0 or better is required to compile gdancer. If you are using packages of GLIB and have the latest version, please make sure you also have the dev or devel version installed, it is needed to compile.)) dnl Check for GTK AM_PATH_GTK(1.2.0,, AC_MSG_ERROR(Test for GTK failed. GTK 1.2.0 or better is required to compile gdancer. If you are using packages of GTK and have the latest version, please make sure you also have the dev or devel version installed, it is needed to compile.)) use_debugging=no if test "x$enable_debugging" = "xyes"; then AC_DEFINE(DEBUGGING, TRUE, "Set debug flag") use_debugging=yes fi AC_OUTPUT([ Makefile src/Makefile gdancer.spec ]) echo echo $PACKAGE $VERSION echo echo Install to the directory.................... : $XMMS_VISUALIZATION_PLUGIN_DIR echo Turn on Debugging messages.................. : $use_debugging