diff options
author | Rainer Gerhards <rgerhards@adiscon.com> | 2007-09-26 10:24:14 +0000 |
---|---|---|
committer | Rainer Gerhards <rgerhards@adiscon.com> | 2007-09-26 10:24:14 +0000 |
commit | 88bbc402201c8bf088d310a9048bf38b77fb2f8e (patch) | |
tree | a35e8422723f8461360900f5d32539b8c368f267 /plugins/ommysql/configure.ac | |
parent | 1c91a20427fe6af60bb385f695ce8768406fa194 (diff) | |
download | rsyslog-88bbc402201c8bf088d310a9048bf38b77fb2f8e.tar.gz rsyslog-88bbc402201c8bf088d310a9048bf38b77fb2f8e.tar.bz2 rsyslog-88bbc402201c8bf088d310a9048bf38b77fb2f8e.zip |
applied patch provided by varmojfekoj to support building ommysql in its
own way (now also resides in a plugin subdirectory)
Diffstat (limited to 'plugins/ommysql/configure.ac')
-rw-r--r-- | plugins/ommysql/configure.ac | 48 |
1 files changed, 48 insertions, 0 deletions
diff --git a/plugins/ommysql/configure.ac b/plugins/ommysql/configure.ac new file mode 100644 index 00000000..57d92e7c --- /dev/null +++ b/plugins/ommysql/configure.ac @@ -0,0 +1,48 @@ +# -*- Autoconf -*- +# Process this file with autoconf to produce a configure script. + +AC_PREREQ(2.61) +AC_INIT([rsyslog-ommysql],[1.19.8],[rsyslog@lists.adiscon.com.]) +AM_INIT_AUTOMAKE([foreign]) +AC_CONFIG_SRCDIR([ommysql.c]) +AC_CONFIG_HEADER([ommysql-config.h]) + +# Checks for programs. +AC_PROG_CC +AM_PROG_CC_C_O +if test "$GCC" = "yes" +then CFLAGS="$CFLAGS -W -Wall -Wformat-security -Wshadow -Wcast-align -Wpointer-arith -Wmissing-format-attribute -g" +fi +AC_DISABLE_STATIC +AC_PROG_LIBTOOL +AC_CANONICAL_HOST + +# Checks for libraries. + +# Checks for header files. +AC_HEADER_STDC +AC_CHECK_HEADERS([stdlib.h string.h syslog.h sys/param.h]) + +# Checks for typedefs, structures, and compiler characteristics. + +# Checks for library functions. + +# SQL support +AC_CHECK_HEADERS( + [mysql/mysql.h],, + [AC_MSG_FAILURE([MySQL headers are missing])] +) +AC_SEARCH_LIBS( + [mysql_init], + [mysqlclient], + [mysql_cflags=`mysql_config --cflags` + mysql_libs=`mysql_config --libs` + ], + [AC_MSG_FAILURE([MySQL library is missing])], + [`mysql_config --libs`] +) +AC_SUBST(mysql_cflags) +AC_SUBST(mysql_libs) + +AC_CONFIG_FILES([Makefile]) +AC_OUTPUT |