Code

Added support for installing PostRR as an extension.
[postrr.git] / configure.ac
index 6e802cc3082b7193399eb040c41460e93aabb835..cf16d83d45320de5d03b8a56ee59274558e59c75 100644 (file)
@@ -186,21 +186,21 @@ build_documentation="yes"
 have_xsltproc="yes"
 AC_PATH_PROG([XSLTPROC], [xsltproc])
 if test "x$XSLTPROC" = "x"; then
-       have_xsltproc="no"
-       build_documentation="no (missing xsltproc)"
+       have_xsltproc="no"
+       build_documentation="no (missing xsltproc)"
 fi
 
 have_a2x="yes"
 AC_PATH_PROG([A2X], [a2x])
 if test "x$A2X" = "x"; then
-       have_a2x="no"
-       build_documentation="no (missing a2x)"
+       have_a2x="no"
+       build_documentation="no (missing a2x)"
 fi
 AC_SUBST([A2X])
 
 dnl pg_config
 AC_ARG_WITH([pgconfig],
-               [AS_HELP_STRING([--with-pgconfig=FILE], [foo bar],)],
+               [AS_HELP_STRING([--with-pgconfig=FILE], [path to pg_config],)],
                [PG_CONFIG="$withval"], [PG_CONFIG=""])
 
 if test "x$PG_CONFIG" = "x"; then
@@ -210,6 +210,7 @@ if test "x$PG_CONFIG" = "x"; then
                AC_MSG_ERROR([could not find pg_config in \$PATH; rerun configure with the --with-pgconfig parameter.])
        fi
 else
+       AC_MSG_CHECKING([pg_config usability])
        if test "x$PG_CONFIG" = "xyes" -o "x$PG_CONFIG" = "xno"; then
                AC_MSG_ERROR([please specify a parameter for --with-pgconfig])
        else
@@ -217,14 +218,17 @@ else
                        AC_MSG_ERROR([the specified path to pg_config does not exist: $PG_CONFIG])
                fi
        fi
+       AC_MSG_RESULT([yes])
 fi
 AC_SUBST([PG_CONFIG])
 
+AC_MSG_CHECKING([for pgxs.mk])
 PGXS=`$PG_CONFIG --pgxs`
 if ! test -f "$PGXS"; then
        AC_MSG_ERROR([could not find PGXS Makefile: '$PGXS'])
 fi
 AC_SUBST([PGXS])
+AC_MSG_RESULT($PGXS)
 
 PG_VERSION=`$PG_CONFIG --version`
 
@@ -243,7 +247,7 @@ AM_CONDITIONAL([BUILD_DOCUMENTATION], test "x$build_documentation" = "xyes")
 
 AC_CONFIG_FILES([Makefile doc/Makefile
                src/Makefile src/Makefile.pgxs
-               src/postrr.sql])
+               src/postrr.sql src/postrr.control])
 AC_OUTPUT
 
 AC_MSG_RESULT()
@@ -255,7 +259,6 @@ AC_MSG_RESULT()
 AC_MSG_RESULT([Configuration summary:])
 AC_MSG_RESULT()
 AC_MSG_RESULT([  package version: $PACKAGE_VERSION])
-AC_MSG_RESULT([  build date: `date --utc '+%F %T'` (UTC)])
 AC_MSG_RESULT()
 AC_MSG_RESULT([  Tools:])
 AC_MSG_RESULT([    AsciiDoc (a2x): . . . . . . $have_a2x])