# get rid of that stupid cache mechanism rm -f config.cache AC_INIT(configure.in) AC_CANONICAL_BUILD AC_CANONICAL_HOST AC_ISC_POSIX AM_INIT_AUTOMAKE(embryo, 0.9.1.030) AM_CONFIG_HEADER(config.h) AC_C_BIGENDIAN AC_PROG_CC AM_PROG_CC_STDC AC_HEADER_STDC AC_C_CONST AM_ENABLE_SHARED AM_PROG_LIBTOOL AC_FUNC_ALLOCA AC_CHECK_FUNCS(gettimeofday) AC_CHECK_HEADERS(fnmatch.h,, AC_MSG_ERROR([Cannot find fnmatch.h. Make sure your CFLAGS environment variable contains include lines for the location of this file])) AC_CHECK_FUNCS(fnmatch, res=yes, res=no) if test "x$res" = "xno"; then AC_CHECK_LIB(fnmatch, fnmatch, res=yes, res=no) if test "x$res" = "xno"; then AC_MSG_ERROR([Cannot find fnmatch() in neither libc nor libfnmatch]) else fnmatch_libs="-lfnmatch" fi fi AC_SUBST(fnmatch_libs) if test "x${bindir}" = 'xNONE'; then if test "x${prefix}" = "xNONE"; then PACKAGE_BIN_DIR="${ac_default_prefix}/bin" else PACKAGE_BIN_DIR="${prefix}/bin" fi else PACKAGE_BIN_DIR="${bindir}" fi AC_SUBST(PACKAGE_BIN_DIR) if test "x${libdir}" = 'xNONE'; then if test "x${prefix}" = "xNONE"; then PACKAGE_LIB_DIR="${ac_default_prefix}/lib" else PACKAGE_LIB_DIR="${prefix}/lib" fi else PACKAGE_LIB_DIR="${libdir}" fi AC_SUBST(PACKAGE_LIB_DIR) if test "x${prefix}" = "xNONE"; then PACKAGE_DATA_DIR="${ac_default_prefix}/share/${PACKAGE}" else PACKAGE_DATA_DIR="${prefix}/share/${PACKAGE}" fi AC_SUBST(PACKAGE_DATA_DIR) AC_OUTPUT([ Makefile embryo.pc include/Makefile examples/Makefile src/Makefile src/lib/Makefile src/bin/Makefile embryo-config README embryo.spec debian/changelog ],[ chmod +x embryo-config ])