# This file is part of NSsync -*- autoconf -*- # Copyright (C) 2011 Sergey Poznyakoff # # NSsync is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation; either version 3, or (at your option) # any later version. # # NSsync is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # GNU General Public License for more details. # # You should have received a copy of the GNU General Public License # along with NSsync. If not, see . AC_PREREQ(2.63) AC_INIT([nssync], 1.0, [gray+nssync@gnu.org.ua]) AC_CONFIG_SRCDIR([src/nssync.c]) AC_CONFIG_AUX_DIR([build-aux]) AC_CONFIG_HEADER([config.h]) AM_INIT_AUTOMAKE([1.11 gnu tar-ustar dist-xz std-options silent-rules]) AC_CONFIG_LIBOBJ_DIR([src]) # Enable silent rules by default: AM_SILENT_RULES([yes]) # Checks for programs. AC_PROG_CC AC_PROG_RANLIB # Checks for libraries. # Checks for header files. AC_HEADER_STDC # Checks for library functions. WD_CHECK_LIB(mysqlclient, mysql_real_connect, [-lm], [:], [ AC_MSG_FAILURE([The required library libmysqlclient is not found or is unusable]) ], [/usr/lib/mysql /usr/local/lib/mysql]) LIBS="$LIBS $wd_cv_lib_mysqlclient" # Grecs subsystem GRECS_SETUP(grecs, [getopt git2chg parser-bind],[$(top_srcdir)/src/pp-setup]) AC_CONFIG_FILES([Makefile src/Makefile]) AC_OUTPUT