From 8f27e65bddd7d4b8515ce620fb485fdd78fcdf89 Mon Sep 17 00:00:00 2001 From: Constantin Jucovschi Date: Fri, 24 Apr 2009 07:20:22 -0400 Subject: Initial commit --- m4/ac_prog_ecpg.m4 | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 m4/ac_prog_ecpg.m4 (limited to 'm4/ac_prog_ecpg.m4') diff --git a/m4/ac_prog_ecpg.m4 b/m4/ac_prog_ecpg.m4 new file mode 100644 index 0000000..b1025a9 --- /dev/null +++ b/m4/ac_prog_ecpg.m4 @@ -0,0 +1,30 @@ +dnl @synopsis AC_PROG_ECPG +dnl +dnl Finds e precompiler for PostgreSQL embedded code. +dnl +dnl @category PostgreSQL +dnl @author Sorin Stancu-Mara +dnl @version 2009-02-22 +dnl @license GPLWithACException + +AC_DEFUN([AC_PROG_ECPG], +[ + AC_ARG_WITH([ecpg], + [AS_HELP_STRING([--with-ecpg=PATH], + [path to ecpg])], + [ + ECPG="$withval" + ], + [with_ecpg=check]) + if test "x$with_ecpg" = xcheck; then + AC_PATH_PROG([ECPG], [ecpg], []) + fi + + if test ! -x "$ECPG"; then + AC_MSG_ERROR([Unable to find ecpg or it's an executable file.]) + fi + + AC_SUBST([ECPG]) + +]) + -- cgit