1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33
|
AC_INIT(pgplsh, 1.3, [peter_e@gmx.net])
AM_INIT_AUTOMAKE
AC_CONFIG_SRCDIR(pgplsh.c)
AM_MAINTAINER_MODE
AC_PROG_CC
AC_DISABLE_STATIC
AM_PROG_LIBTOOL
AC_SUBST(LIBTOOL_DEPS)
AC_PATH_PROGS(PG_CONFIG, pg_config)
if test -z "$PG_CONFIG" || test ! -r "$PG_CONFIG" ; then
AC_MSG_ERROR([pg_config not found])
fi
postgresql_includes=`$PG_CONFIG --includedir`
AC_MSG_NOTICE([using PostgreSQL headers at $postgresql_includes])
postgresql_server_includes=`$PG_CONFIG --includedir-server`
AC_MSG_NOTICE([using PostgreSQL server headers at $postgresql_server_includes])
if test -n "$postgresql_includes"; then
CPPFLAGS="-I$postgresql_includes $CPPFLAGS"
fi
if test -n "$postgresql_server_includes"; then
CPPFLAGS="-I$postgresql_server_includes $CPPFLAGS"
fi
if test "$GCC" = yes; then
CFLAGS="$CFLAGS -Wall -W"
fi
AC_CONFIG_FILES(Makefile)
AC_OUTPUT
|