# -*- Autoconf -*- # Process this file with autoconf to produce a configure script. AC_PREREQ(2.57) AC_INIT(ygraph, 0.15rc2, pollney@aei.mpg.de) AC_CONFIG_SRCDIR([src/ygraph.c]) AC_CONFIG_HEADER([config.h]) AM_INIT_AUTOMAKE AM_PATH_GTK(1.2.0, , AC_MSG_ERROR(Cannot find GTK: Is gtk-config in path?)) AM_GNU_GETTEXT # something random - since I have to put something here AM_GNU_GETTEXT_VERSION(0.12.1) # Checks for programs. AC_PROG_CC # Checks for libraries. # FIXME: Replace `main' with a function in `-lbz2': AC_CHECK_LIB([bz2], [main]) # FIXME: Replace `main' with a function in `-lgdk_imlib': AC_CHECK_LIB([gdk_imlib], [main]) # FIXME: Replace `main' with a function in `-ljpeg': AC_CHECK_LIB([jpeg], [main]) # FIXME: Replace `main' with a function in `-lpng': AC_CHECK_LIB([png], [main]) # FIXME: Replace `main' with a function in `-lpopt': AC_CHECK_LIB([popt], [main]) # FIXME: Replace `main' with a function in `-ltiff': AC_CHECK_LIB([tiff], [main]) # FIXME: Replace `main' with a function in `-lz': AC_CHECK_LIB([z], [main]) # Checks for header files. AC_HEADER_STDC AC_CHECK_HEADERS([stdlib.h string.h]) # Checks for typedefs, structures, and compiler characteristics. AC_C_CONST AC_C_INLINE # Checks for library functions. AC_CHECK_FUNCS([floor mkdir pow strchr strstr strtol]) AC_CONFIG_FILES([Makefile doc/Makefile src/Makefile test/Makefile intl/Makefile po/Makefile.in m4/Makefile ]) AC_OUTPUT