# Process this file with autoconf to produce a configure script. # AC_PREREQ(2.57) AC_INIT([gmfsk], [0.6beta4], [oh2bns@sral.fi]) AC_CONFIG_SRCDIR([configure.in]) AC_CONFIG_HEADER([config.h]) AM_INIT_AUTOMAKE AM_MAINTAINER_MODE AH_TEMPLATE([GETTEXT_PACKAGE], [Gettext domain name]) AH_TEMPLATE([WANT_HAMLIB], [Define to 1 if hamlib support is wanted]) GETTEXT_PACKAGE=gmfsk AC_SUBST(GETTEXT_PACKAGE) AC_DEFINE_UNQUOTED(GETTEXT_PACKAGE, "$GETTEXT_PACKAGE") # Supported languages. # ALL_LINGUAS="" AM_GLIB_GNU_GETTEXT # Checks for programs. # AC_PROG_CXX AC_PROG_CC AC_PROG_MAKE_SET AC_PROG_RANLIB AC_CHECK_PROGS(RPMBUILD, rpmbuild, rpm) # GConf (some systems hide gconftool in strange places...) # AC_PATH_PROG([GCONFTOOL], [gconftool-2], [], [$PATH:/opt/gnome/bin:/opt/gnome2/bin]) AM_GCONF_SOURCE_2 # Scrollkeeper. # AC_PATH_PROG(SK_CONFIG, scrollkeeper-config, no) if test x$SK_CONFIG = xno; then AC_MSG_ERROR([Couldn't find scrollkeeper-config.]) fi SCROLLKEEPER_BUILD_REQUIRED=0.3.5 AC_SUBST(SCROLLKEEPER_BUILD_REQUIRED) # Checks for libraries. # AC_ARG_ENABLE(hamlib, AC_HELP_STRING([--enable-hamlib], [Add support for hamradio control libraries]), [enable_hamlib=$enableval], [enable_hamlib=no]) if test "x$enable_hamlib" = "xyes"; then pkg_modules="libgnomeui-2.0 hamlib" else pkg_modules="libgnomeui-2.0" fi PKG_CHECK_MODULES(PACKAGE, [$pkg_modules]) AC_SUBST(PACKAGE_CFLAGS) AC_SUBST(PACKAGE_LIBS) if test "x$enable_hamlib" = "xyes"; then AC_DEFINE(WANT_HAMLIB, 1) AC_MSG_NOTICE([Enabling hamlib support]) else AC_DEFINE(WANT_HAMLIB, 0) AC_MSG_NOTICE([Disabling hamlib support]) fi AC_SEARCH_LIBS([fftw_create_plan], [dfftw fftw],, [AC_MSG_ERROR([FFTW libraries not found!!!])]) # Checks for header files. AC_HEADER_STDC AC_CHECK_HEADERS([fcntl.h limits.h stdlib.h string.h sys/ioctl.h unistd.h dfftw.h fftw.h linux/ppdev.h]) # Checks for typedefs, structures, and compiler characteristics. # AC_C_CONST AC_C_INLINE AC_STRUCT_TM # Use -Wall if using GCC # if test -n "$CC" then if test "x$GCC" = "xyes" then CFLAGS="$CFLAGS -Wall" fi fi # Checks for library functions. # AC_FUNC_ALLOCA AC_PROG_GCC_TRADITIONAL AC_FUNC_MALLOC AC_FUNC_REALLOC AC_FUNC_STRFTIME AC_FUNC_VPRINTF AC_C99_FUNC_LRINT AC_C99_FUNC_LRINTF AC_CHECK_FUNCS([floor ceil fmod memcpy memmove memset pow sqrt strcasecmp strchr strdup strerror strstr mkdir]) # Output # AC_CONFIG_FILES([Makefile gmfsk.spec help/Makefile help/gmfsk/Makefile help/gmfsk/C/Makefile m4/Makefile po/Makefile.in src/Makefile src/feld/Makefile src/mfsk/Makefile src/misc/Makefile src/mt63/Makefile src/psk31/Makefile src/rtty/Makefile src/samplerate/Makefile src/throb/Makefile]) AC_OUTPUT