summaryrefslogtreecommitdiff
path: root/configure.in
diff options
context:
space:
mode:
authorTom Lane <tgl@sss.pgh.pa.us>2004-12-16 20:41:01 +0000
committerTom Lane <tgl@sss.pgh.pa.us>2004-12-16 20:41:01 +0000
commit8ec96083260ddba4b0f84d2a81e08b2baad18200 (patch)
treeb03ce9098a67bdb071ae333970337c5288dbee3f /configure.in
parentd0c01f29dfba8892d12685bd148d41ccdec2614b (diff)
downloadpostgresql-8ec96083260ddba4b0f84d2a81e08b2baad18200.tar.gz
Cause configure --with-tcl to check for presence of <tcl.h>, as per
gripe from John Gray. Also fix thinko in pltcl Makefile: if a special Tcl include directory is specified, that ought to be searched first.
Diffstat (limited to 'configure.in')
-rw-r--r--configure.in7
1 files changed, 6 insertions, 1 deletions
diff --git a/configure.in b/configure.in
index 6914434d73..6f7922ae3b 100644
--- a/configure.in
+++ b/configure.in
@@ -1,5 +1,5 @@
dnl Process this file with autoconf to produce a configure script.
-dnl $PostgreSQL: pgsql/configure.in,v 1.390 2004/12/03 22:24:53 pgsql Exp $
+dnl $PostgreSQL: pgsql/configure.in,v 1.391 2004/12/16 20:40:59 tgl Exp $
dnl
dnl Developers, please strive to achieve this order:
dnl
@@ -1222,6 +1222,11 @@ if test "$with_tcl" = yes; then
PGAC_EVAL_TCLCONFIGSH([$TCL_CONFIG_SH],
[TCL_INCLUDE_SPEC,TCL_LIB_FILE,TCL_LIBS,TCL_LIB_SPEC,TCL_SHARED_BUILD])
AC_SUBST(TCL_SHLIB_LD_LIBS)dnl don't want to double-evaluate that one
+ # now that we have TCL_INCLUDE_SPEC, we can check for <tcl.h>
+ ac_save_CPPFLAGS=$CPPFLAGS
+ CPPFLAGS="$TCL_INCLUDE_SPEC $CPPFLAGS"
+ AC_CHECK_HEADER(tcl.h, [], [AC_MSG_ERROR([header file <tcl.h> is required for Tcl])])
+ CPPFLAGS=$ac_save_CPPFLAGS
fi
#